<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8"/>
	<meta name="baidu-site-verification" content="JdMif0g2tL" />
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<title>angular</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
	<script src="js/angular.min.js" charset="utf-8"></script>
</head>
<style type="text/css" media="screen">
	*{margin:0;padding: 0;font-size: 16px;}
</style>
<body ng-app="myApp">

<div>{{msg}}</div>

<script type="text/javascript">
	var msg='hello kity'
	var app =angular.module('myApp', []);
	//根作用域可以在run方法中使用
	//run方法中只能使用$rootScope根作用域
	app.run(function($rootScope){
		console.log(this)
		console.log(arguments)
		console.log($rootScope)
		//将全局作用域下的变量赋值给根作用域中的msg变量
		$rootScope.msg=msg
	})
</script>
<script type="text/javascript">
	document.getElementsByTagName('html')[0].style.fontSize=window.screen.width/10+'px';
</script>
</body>
</html>
<!--应该12angular指令05 checked-->